//
//  @ Project : Adamantium Project
//  @ File Name : Player.cpp
//  @ Date : 12/8/2012
//  @ Author : 
//
//

#include "Player.h"

Player::Player() : Units(){

}

PlayerStatus* Player::getStatus() {
	return &m_status;
}

void Player::draw() {

}

void Player::update() {
	m_clickable.RIGHT = m_pos.x+5;
	m_clickable.LEFT = m_pos.x-5;
	m_clickable.TOP = m_pos.y-5;
	m_clickable.DOWN = m_pos.y+5;
	if(m_clickable.isClicked(BTN_RIGHT))
	{

	}
}

void Player::init(BeanieCore* a_core)
{
	m_core = a_core;
	m_clickable.m_core = m_core;
	m_clickable.RIGHT = m_pos.x+5;
	m_clickable.LEFT = m_pos.x-5;
	m_clickable.TOP = m_pos.y-5;
	m_clickable.DOWN = m_pos.y+5;
	//m_context.init(m_core);
	m_status.deathRay.isDamaged = false;
	m_status.deathRay.starDates = 0.0f;
	m_status.laserEn = 0;
	m_status.lasers.isDamaged = false;
	m_status.lasers.starDates = 0.0f;
	m_status.lrScanner.isDamaged = false;
	m_status.lrScanner.starDates = 0.0f;
	m_status.missleCount = 3;
	m_status.missles.isDamaged = false;
	m_status.missles.starDates = 0.0f;
	m_status.shields.isDamaged = false;
	m_status.shields.starDates = 0.0f;
	m_status.shieldEn = 0;
	m_status.srScanner.isDamaged = false;
	m_status.srScanner.starDates = 0.0f;
	m_status.subLight.isDamaged = false;
	m_status.subLight.starDates = 0.0f;
	m_status.warpDrive.isDamaged = false;
	m_status.warpDrive.starDates = 0.0f;
}